Notification Feature Finished

Full subscription and notification feature working.
Minor refactorings.