Implemented interfaces, message handlers and ordered a little bit the code.