R Programming: PA2 added more verbose comments