add license, work on read me
correct argument in case of fail
update the doc