Argument parsing and main method.
Minor bugs.

Added concat data with test.