cleaned read_command.c