Outsource the analysis into a separate file
Format script for readability, add to lab report