Fix some issues, make stuff use the logger and add inventory subcommand