bugs fixed
Memory leaks solved