License, javadoc, and minor changes.

Added license info and documentation. Minor changes in preparation for
the binary to decimal calc.