Implemented energy axis rescaling to the top of the valence band, and corrected some array size bounds thanks to valgrind output.