Improved error handling. Added graceful exit with ctrl-c. Added welcome/exit messages