Added commenting for all VCS functionality and some of the non-VCS-specific flow.