clean up indentation
Add check for empty data set
Fix transformed scale score test scripts