Removed old funtions

Removed old and nowdays unused functions.