update: makefile and src/functions.f90