-- added support for formulars
-- keep order of items thesame as in XML structure
-- cleaning up and adding comments