snapping (cont.)

snapping should be working for 'A' on the left hand, need to make it
better
tried to resolve some TODOs
import hpr now works
cleaned up some code and documented in callfunction and virtualdirectory