Fix error that stopped read from working properly. Add read example.