root element issue

The following PR solves issue #3.
It includes some corrections for typos etc.