fixed issues #17 and #5 + some cleanup
Fixes #20: genshi-raw reports now output good text data