Add command line interface
Merge branch 'master' into package
Package 0.4