Debugging of the output function and optimizing the output block according to style guide
Predefining coordinates and dimensions
Creating temporary F and OUT variables to simplify the creation of the directory
Additional style changes in the save_output function block