pep8 cleanup
added clean_sql-results
fleshing out the study object