Fix #8 Fix #7 Reads and outputs