apply latest changes from tijmen tieleman's page
add linked example for easier browsing
pep8