Fixed some notification bugs and some other miscellaneous things.