Moved functions out to seperate folder - removed multi_defs which is handled by complex now.