Added Field output and command line options

- Added plenty of command line options to customise output
- Added DocHelper class for common doc tasks
- Added output for fields
- Fixed several minor issues, e.g. with link generation