Did some refactering on function check. Added 'single' impl.
Error  -> new Error
Added singleOrDefault
Updated readme