minor fixes to activity histories
user management fixes reported in #27 and #28 plus other minor improvements