add png for testing
fixed test and made knot.barchart more versatile