refactor some older code
Merge branch 'master' of github.com:pouetnet/pouet2.0