Refactored some parsing code, added rescue to send users to error page, added in mail message if rescued, changed styles