added wrong args handling

Moved args validation to command execution.
Fixed not inited huffman tree.
Fixed zero program args bug.