Added support for 'itemref'
Cleaned code, removed xml from MD_NODE and descendants
various renamings
Added copyright and licensing