update package to be more general and add a readme