Fixed the java docs and removed duplicate imports