fixed RootViewController error and updated docs