Add error handling and automatic instance derivation

No more need for reflection or ObjectMapper