Added codecs and reworked parts of the class.
Started on some event handling.