Added comments.
Refactored view initialisation.