Optimized code
Added weight converter to unit converter