refactored data handling classes
restructured output (errors, messages, debug messages)