write the command inside the file so we know what commands are waiting
added comments