Added comments and enhanced code in cms.views