Refactoring. Discussion text added

Refactored a few methods and added my developer's discussion of the
submission.