FIX: Bug in scale factor prior gradient
Import syntax cleaned up.
Cleaned variable names a bit (scale_factor -> sf)