Document argument parsing logic, closes #12.