Added missing javadocs. Removed unused Main class.