added analytics; fixes #5;