polished off table to display results, started to comment code.
some validation to make sure min year and max year work.
return after validation so that sql query doesn't run.