add gitignore
export a way to get the path of a digest
export type related information and add a view subcommand
reorganize the subcommands structure