adjusted tests to regenerate error on CustomViewer subclassing. #481
Cleanup and document custom viewers

Closes #481
More refactoring of custom viewer.
Fix test
Merge pull request #486 from ChrisBeaumont/482

Fix #481