Adding in-source documentation. Minor fixes.