Remove the line specifying MIT licence
Use const char* instead of char* for the nextBytes method
Fix the _getBufferSize method to return the number of characters up to a
specific character (-1 by default)
Fix a bug that would not return a -1 if the byte was set to EOF
Fix a bug that was not clearing the buffer when asked to