Removed useless brackets
SSH replaced SFTP; no tempfiles; code cleanup