Added some notes to code.
Fix karma conf