cleaned up spatial weighted stats
many utility scripts