added karma module (with contributions from Sheva)