First commit.

Fully working version of script.
README updated.