- implement the memlib
- add config.h, for global variants