Convert dermatology ex., refactored ad2grgen.java

refactoring and bugfixing: supporting newlines in element names now, and
removed lots of duplicate code w.r.t. node mapping