added writeFSLdesign function to master functions file