Correct spelling errors in javadoc and removes unused import statements