Added readme and fixed a bug with disconnecting