added table view, string representation for state, began timed refresh task and some minor changes