Formats the main function correctly (using __FILE__ == $PROGRAM_NAME)