implemented txtplot function
fixed broken commit