Refactor CLI code

Now uses optparse and takes care to have

--long and -s hort

option switches

Also add install command to put merged files into correct project