* fixed ios project
* some fixes for memory leaks
* removed old / unused code