Moved inline comments to method summary and expanded a bit.