fix root element issue
fixed some typos
fixed an issue with root element