Add screenshot texts.

Clean up code and add JavaDoc.