adds Javadoc for code documentation