Credit Code Review Stack Exchange

Previous improvements to code were made following suggestions from Winston Ewert's review at <http://codereview.stackexchange.com/a/42554/37331>.