brush up test code
implement option parser
implement 'add' and 'commit' halfway