File Writing Works!

This only works for a single wave direction and dosent create a new
directory yet, just puts file in main directory.