created javadocs and cleaned up code not needed