update reamde
update readme
update docs, remove switch statement