Updated README with working example; added timeout; small cleanup.