1. Added logs.
2. Completed Javadoc.
3. Finished methods onPause() and onResume().