Refactored heavily the IRC bot. Added haddock documentation.