Converting to a bash command and finishing the mains (command line) interface.