added some docstrings, put back notes.db, files to PEP8