Clean up POD a bit
remove required/optional parameter headings when list is empty

I forgot how ugly this code is, needs a rewrite with templates or something