Updated gen_random_output to take num characters as argument.
New comments. Takes num characters to output as argument.
Slight cleanups.