Make local functions private.

Removed the header file for the main program. All local functions are
now forward-declared in the cpp file. This makes them unusuable outside
the main file, which is the equivalent of private helper methods in the
Java class containing public "static void main ( String[] args ) {...".
Merge branch 'MakeFunctionsInMainPrivate' into develop

Merge