Improved special exception handling in main
Added gprof option to premake4 file
Added basic performance monitor to main