Added LocalStorage module
Shifted the position of declaration of controller
Implemented addNote function