setQueries.php, adding comments

adding comments to describe functions
queries.php, removing old code