remove useless inclusion of math.h
new functions to compute amplification of extended sources
update and improve Makefile