Added ratio object, other small changes