Refactor/rewrite of most parts. First version of "zombase".