commenting + reformatting code