Added phpdocs to queryFactoryResult and implemented the Iterator interface.
Fixed a bug with ExecuteMultiRandom introduced with the initial commit.