Usage of a function in loops should be avoided
Optimise imports
Merge pull request #8 from roderik/master

More insight fixes