Added notes in README on usage.

Fixed bug in trim().
Added usage message, additional options for specifying output file name
or output pipe command; trim whitespace from arguments; additional sanity
checks on arguments.

Change-Id: I91b2fc2251fe4acd912fd2b4cfccfbd2db55cd08
Merge "Added notes in README on usage."