Update README with proper example and misc changes.
Fix nil pointer.