Updated modifications to r7807, ie freezing scheme (flags) + some outputs added + calculation of som used in thermosoil