Added input reader from input.commands and factored with the commands