Added some global constatns and functions, BulgeEnergy should be fully funcitonal now