Added .gitignore to ignore .karma.
Fixed bug in .karma reading code.