Added welcome message and main with exception handling