Improved error handling. Errors no longer immediately exit the program. Added errorcount variable.