Refactored functions to use only static methods, changed code to PSR-2 standards, added several options for queries such as multiple values and multiple keys, improved value extraction to look within embedded arrays.