Feature/error abstraction

Abstracted usage of JError