Adding requireRoot.resolve and improving documentation