Fixed bugs. Iterative scaling working on static example