Local closeness script now calculates a value, but there are several differences with reference output.

Next step is to find the inconsistencies with old program.