added excessive commenting. todo: comment during, and comment succinctly.