Fixed adding rows for new files
Added 'delete history row' routine.
Removed testing statements