cleaned up ast printing and fixed unicode output bug