Added command-line options
Fixed open file bug
Changed some random values