added a check for band occupations to avoid possible incorrect calculation of band gap. Occupations are only printed in high verbosity mode