Fix karma adjustment bug and implement identity.
Merge pull request #90 from hyPiRion/fix-karma

Fix karma adjustment bug and implement identity.