change erlog_memory for cursor usage
refactoring of ec_core
fix debugger empty vars
made cursor logic