added a flush mechanism
Merge branch 'master' of https://github.com/porcupinelabs/PiSense