Fixup function parameter documentation

Remove unused variables

Added new function documentation blocks

Change-Id: I7b3debce47a91121d3d69adc7d96b0fe0b3c0709