Documented some of Jim's code improvements