removing some strings from code into config
refactoring, error class
error object, debug refactoring, http headers