Activity updating incorporated

- add updating of activities
- has not been fully tested but appears to be functioning properly
- needs more testing!