fix documentation and powershell code