Refactor XsendFile

Fix commands

Fix typo