refactored lots of code
initial implementation of calculating recall from query triple weights