Add Javadoc and format the code
Remove synchronized from plain text logging method

 This is not needed in this case.
Add javadoc and formating