Cleaned code.
Fixed code indentation.

Changed the comments and added the RIEventTracking
Added comments according to AppleDocs requests.
Implemented the event tracking with GA