Comments added for a couple functions