added beam file writing functionality

Hi Indranil,

Here are two functions that I use in my work to write zemax beam files. They're not technically accessing the ZDDE, but they may be useful to others.
Is this using the PIL/ Pillow package?