removed tabs for 4 spaces
discovered a small bug. handleOut works well when you pass an array as the result e.g. r[200]=hash but if the $result is not an array we really have no way of knowing if this was an error our good output. I don't see this happening often, but since I hit it while writing unit tests I decided to make this condition always return successfully.