added commandline flags, made seed reproducible, made time seed finer