making accountability groups works again
cleaned up most jshint errors
comments and a tiny bit of cleanup