Add mtl dependency.
Move option parsing to separate module.
Add basic batch-mode parsing and printing.