Simplified and memory leaks solved

The user interface was simplified, and founded memory leaks were solved