added pydoc support, window resizing