Merge pull request #5 from voria/master

Use local variables in order to leave the environment untouched
Add tests
Add travis status image
Use better variable names