removed prettytable library and created printer() in replacement