Added comments. Renamed title to pageTitle to avoid confusion.