Removed useless functions.
Fixed global/declaration/definition/modul functions.