Implementation of chat errors, tonns of cleaning up, some bugfixes.