Improve the handling of skipws flags.
Improve formatting.
Add more tests.
This could just about go in.