More documentation
Changed output to go to stdout in the same format as the input