Improved code according to code review notes.

Fixed app crash on galaxy s4. (date -> system.time)

Clean up:
-Deleted unused imports.
-Autoformat.

Updated comments.