Replace the readLine calls by the one from the library
Add synchronization to read method
Add exception and synchronization to write method
Partial implementation of SubRipWriter