More encapsulation

-Added set/get to storageChanged
-Updated main.js accordingly