Updated to the specs, should be good to go now!

fixed output, and searching logic