added callback to init function
update readme with init