Distance to interfaces

added DistanceToInterfaces method.
Now it is possible to add writers for an implemented interface.