Messing with encoder

Encoder now returns floats