Major overhaul.
Update readme with a new usage example.