replaced output system to curses
added an data decoder