adds a test for the command operation, fixes a bug and updates the readme