Very massive stars, pair-instability supernovae and intermediate-mass black holes with the sevn code