Code commented and user input added to table size