Abstract convert and file write
Update tests
v0.3.0