added a longer explanation in the readme and fixed a small typo in the output