Removed some debug code and added work summary at the end of the program
Removed test function