Comment overhaul. Javadoc comments added.