Added license. Added documentation of command line use.