Proxing rewritten, correct ending done (with one problem)
Bug fixed. Now valgind show no error