CORTEX: Rework all BUGS and now all working great, tested all functions.

Dear VOKU, cut the bug scripting, you are doing good job, but PLEASE!

So it in small portions and TEST every function you change.

Thanks.