Do the math on 1/2 of the file size

Closes #1.
Use a better variable name for the output dir