Fixed a few issues with adding and editing an activity; also added some comments.

Ready to begin the merging process with the main branch.