Fixed the output and commented the code.