Added the main program and several little testing programs