Add Error object, update FileHandler and tests

Errors object for error message texts. Updated tests with syle that might work.