moved more functions to docopts and introduced a version command