refactoring Spark deploy scriptis

Refactoring scripts to improve readability and reusability, as
well as clarifications to README