Added comments to some obscure code.