Refactor XsendFile

Fix commands