improved code
Merge branch 'master' of github.com:zollder/pi