Setup for better optparsing with optimist
Implemented optimist optparsing scheme