Removed unused code, added javadoc description of run()