Added a gen server for doing calculation and a way of starting it up, also debug helper methods