Completed part D and polished up the code and commenting.