Added README.md. Fixed options parsing; clarified usage.

Using this script isn't exactly trivial, so I've added a readme to explain how and also improved the option validations.

Manually tested.