Fixed console code and added comments to section