removed some print statements
improved tests and using cm_keys in profile.html