Code is compiling with a minimum of warnings. Some minor changes remains.
Merge branch 'refactor_API' of https://github.com/theolind/mahm3lib into refactor_API