fixing new pages
adding javadoc