improved diagnostics and refactoring
Merge branch 'master' of github.com:mbeddr/mbeddr.core