Implemented DESP for expression weights.

Implemented DESP for float values.
Cleaned up code.