reformat
reformat and added comments