Added a bunch of prototypes to the main program