prevent calling library functions if not initialized + test; add termbox_last_error; make get/set functions for input/output modes