Introduced a general error counter for all kinds of errors. The program will no longer be run if it might cause a VM crash. Improved semantic error messages.