add header to output files
added BSD-3 licensing