implemented basic function merging
header declaration and cpp implementation merging of functions