Moved printUsageInstructions so that main is at top of file