Use floats instad of ints for Weighted. Closes #7.