killed some output bugs, improved amr.