Lot of changes to improve event handlers. Now have some documentation. More functions to work more easy.