Cleanning some C unnecessary code using about hash
+ Handlers needs to be changed
+ Some changes adding safe deletion on iterations
+ Refactoring