major focusing changes, refactoring

i also added a generic grid search script