Fixed bug where commandline options were not being passed correctly. Also, fixed 'checksFile' variable name.