lchen59 added comments, formatting