Add possibility to upload with sftp and code cleanup.

Code to be tested before production.
 Some corrections.

Some corrections.
Update script.sh

sftp command don't work
Update script.sh
Merge pull request #3 from Pe46dro/patch-2

Added possibility SFTP and code cleanup