Fix some incompatibilities with Python 2.5 and fixed an invalid reference for the idle timer.
Add/update documentation.