added makefile
code factoring, some speedups
forgotted inline added
little speedup
Merge pull request #1 from philippeback/master

Makefile, code factoring, speedup, reset zoom