writeSmet function

Write a SMET file