obverter using weight proportion. rough initial attemps. works but needs tuning for good output.
initial attemps for objected oriented version. this uses weight proportion instead.
reorgnisation of files