cleaned up explor.R