Add command line interface and module exports