Added cmdline exe. Added simple integration test.