Made comments more intutive. Completed the first function.