Added comments as suggested by Mike in code review