Fixed cat command output and added completion to it