Add doc for guards

Add more doc for guards.