Updated examples in readme to reflect new API