updated the main function to provide all of the error checking for the project. Actual implementation code resides in Knight Engine directory. Tomorrow I will take this main code and integrate it into a unix port so this can be submitted