added javadoc style documentation, introduced java logger