Remove timing from event loop in order to boost performance. Added some more documentation.