Rename $type to $section in code to make man pages