Spelling fix
Merge branch 'master' of github.com:flack/midgard-portable
Make sure functions were executed successfully
Improve logelevel handling