start of all queries done, comments also

The first step of all queries done and checked I think.  needed
variables outlined.  Once we have all data in they will be easy to
finish.