Added first draft of standalone command line version.