Fix show and edit functions. Fix JSON retrieval.
Remove commented code.
Merge pull request #24 from nunofmaia/fix/add_and_retrieve_events

Fixed show and edit functionalities and JSON objects retrieval