Added many more tests and changed the sse interface.