Removed deprecated int based weights

This is the second pull request which removes the deprecated support for int weights.