moved example code from citationparsing.rst into testable python files