improved the makefiles

added copyright notice