version API, refactor CLI app