Updated documentation for SGA preprocess module and added an _output_filename subroutine