- Modified the master file output to match the new, more complete format.
-Restructured code in places to adapt to the changes.
-Added SEM calculations to the master file.