Lots of changes. Should have committed earlier so I remembered! Now includes code to merge bricks.
Code for analysis of results (plotting, etc).
again, don't remember what I changed. Bad git hub user.