Added a couple of div functions
Added gain ration
Modified values-to-check
Merged with master