Turned revsim.py into an executable script that takes command-line arguments