some fixes for ui
a major bug now fixed with realloc
Merge pull request #28 from WheBurr/debug_malloc

Debug malloc