Queries Homework 3 Second Commit

This is the second commit for my queries homework. Added are comments
describing the function of each query.