Clean up functions.

- Declare functions with a consistent style.
- Rename options_parse to parse_options for clarity.
- Remove dead code from parse_options.