Declared ParseContext class partial and moved I/O methods to separate file