Add CLI flags for parsing input and output options

This PR replaces #5 and provides the same content to be merged to `develop` branch.