refactor dirs and IO
update readme