Replace { input, output } with { writable, readable }

Fixes #174.