Add some javadoc - mostly in IO.