ref #18 add formated debug output
fix examples