Move scaling method inside V3BWFile

and some other refactor and cleanup i did before implementing Torflow method.