My attempt at helping

updated codeblocks and comments where I don't know the implementatioin