Added comments describing how the Model-View-Controller pattern was used.