algorithm comments done, visual comments to be done