Added some code comments.
Altered permission checks on assignment form. Fixes #1710.