write_function_sp: edited output formats
CFLAGS: added fimplicit-none and fmodule-private