Some cleaning up of the help API
Tidy up the edits, try to make the code more comprehensible.