Signif refactor of argument parsing and put main into vectorly file.