Fix factor code
Add function to allow division of rational expression