moved demo directives to the demo controller (removed from main js file) added a few comments/notations