Added the main function, which is used by the command line interface.
Merge pull request #1 from pelson/main_level_function

Added the main function, which is used by the command line interface.