Added DocBlock style comments to the functions