Fixed setting of root dir
Updated examples