Cleanup and javadoc for fragments