Edited the javadoc and deleted unused methods.