removed auto formatting and adding javadocs