added imports
fixed float32/float64 issue (but apparently, that wasn't the issue)