Added test case and solved some leaks.
Simple memory pool handler.
Some ideas for header files.