rename $window to $target, docs fix, target in defaults