First and rough version, including a simple command line API