added simple random data generator. fixed some typos.