fixed more bugs

karma example now compiles and runs again without bugs or errors! YAY!