added more graphic output formats
added midpoint rooting