- added preliminary check for rochade
-added some more documentation