Added javadoc, a few corrections, a main Command Line class