Additional fixes - Take 3

Added forced read/write permissions to data directory creation (chmod).
Added 'wget' vs. 'curl' binary existence verification - 'wget' is not a default on all distributions.
Modified some variable names to clarify their role in the script.
Cleaned up prompts and fixed typos.
Removed trailing and duplicate spaces.