Init docroot

#822 with docs and tests fixes