calculation of eigenenergy implemented
error corrections -- still some errors left!