Fixed demos to conform with updated comm.set.seed(); made some of the checks less stupid