Move active cell check to end of timestep
Remove redundant depth check
Use module rather than long argument list
Use array for file unit numbers
Move timestep variables into output module
Improve output formatting
Use correct INTENT specifiers