Implemented most functionality of SSHfile class