added more attributes to exercises/:id.json and submissions/:id.json
and lets return nil instead of -1