added pretty printing function
made a curses-based app \o/