bugfix for difficult JSON output and some more docu