drastically hacked away unnecessary functions: removed all gaussian functions except ngauss; removed all reference to the library threestate.py; cut out some other unnecessary functions.