fix passing root as options.root
update docs