Fixed adjustments to variables for query references. Reorganized and updated comments for css.