Updated license.
Added command line support, some fixes.
Updated gemspec.