Bug fixes and notifications

Minor bug fixes and added the beginnings of a notification system.
Added notifications and bug fixes