Addition of JavaDocs and removing unused code and classes.