Fix missing import
Fix reading text from buffered reader