Added log.file argument
Added code to LowerPersistence_v1.R to remove actions from costs data that were not in a.data