Fixed doc typos in OptionParser

Also added a new doctest for parse_head