instanceofrefactoring pull request

instanceofrefactoring refactoring is finished and stable hence we can merge instanceofrefactoring with the develop branch