refactored Function, removed Decorator
improved merge_dicts
min