Functions added

Computation of residual strength based on Syield, Sflow, Sult and
Sfrac.
Function created to write the output files.
Function created to open files.
Function created to close files.