updated nearest neighbour finder for models -- slower, but works more
fixed inconsistencies in run script