Make error reporting better
Get project to work with JSON