implement Base.IO compatible writer
implement Base.IO compatible reader
test: use @test instead of @assert
fix indentation (replace tabs with spaces)
Trailing whitespace.