completed; make dynamic queries; added usage examples