Added writeStimFile function and started writing the documentation for all functions.