New function to parse high level options
Refactoring aptions parsing

(not convince by subcommands after all)
More consistent target names
More consistent target names
More consistent target names
Adds LaTeX as an option in the parser