added scoring methods and changes to candidate