Reorganize/simplify global processedLocation variable for background estimation
Reorganization and cleanup
Moved files.