added documentation to a couple functions, changed no logical code