renamed new to inc and refactored subcommands into functions