Initial commit of cleaned-up dev branch
Small fixes recommended by shellcheck
Restarting with fresh commit history