Improve docs

Add signature and explanation of guard() function