Merge pull request #2 from mikeS7/master

Several changes & optimisations
Fix syntax error
Merge pull request #3 from ivesdebruycker/master

Pull