Make the guess_format finction independant of the iterator nature

By using next instead of readline in the guess_format function, it can
work even in the input iterator is not a file.
Make split_leaflets function independent of the format

Pass the parser as a callback
Fix a typo
Add a "Contribute" section in the README

Fixes #18
Introduce test coverage in the test suite

See issue #19