Added functionality for a teacher to allow trial access to docs

^ that and a few (minor) bug fixes.