Code cleanup

see #29
-remove $ from non-angular functions
-adding db-logger
-adding comments
-remove commented code