Comments added
Fixed input and output data.