Create cdbgui15.py

Improved error-checking, several bugs (index out of range, mixed up logic, etc.) fixed, full functionality of visit notes added.