add main application file
added a custom exception handler