added comments to codes. added note to README