added comments to the sql table file generation, minor spacing fixes