Add polyfill + size limits + better reconnecting +fixing a few bugs