Turned extra::getopts functions into methods
Some minor api and doc adjustments