Update pseudocode.md

Added comments to clarify pseudocode