changed default open mode to read_mode

just like open()
added context manager