v1.0.0.8.1

Rewrite code.
Added new types.
Added new command line parser.