Added save routine. Constructs a timestamped folder and writes to it.