Improved error handling, Error class added, improved Screen class