Began arranging functions more orderly and documenting code