add docop prototype
add docopt to main
refactor to use docopt