Updated readme to include optional data parameter