Bug fixes on Text I/O

Still need to fix DateParser