Formatted using bruce's xml fiel

This commit formats the code using the codestyle.xml formatting used by
Bruce. I have commited the changes and netbeans configuration file in
this commit to, so other netbeans users can use the config :).
Added support for dynamiclly loading XML files