More improvements to spectrum generation.
Fortran functions for FHI-aims analysis.

To be compiled with f2py (for use with aims_lib.py)