Added main file, option parsing and multiple output formats.