Fix UnitObject.power() always returning error
Update and add unitobject lubrary functions