Removed unused function showtable(), fixed bug (I think) that solved table incorrectly, laid groundwork for guess and iteration functions