Minor bugfixes in code
Merge branch 'master' of https://github.com/hctpbl/alizephp.git