changed states.cpp to work with quantum numbers n,l,j,m. Should be checked!