add a root file and minor fixes on example