Program documentation can be found in the header comment block in the file bmad_to_merlin.f90