Carry on refactoring cyclone code into functions.
Get rid of fgfortran compile warnings (compile with -Wall).