Added in actual comments where instructed and input code.