Added ability to return boolean values for array and hashes, refactored current functionality to make this work, added tests and updated README.md