added a random out file generator updated testing