Cleaned up install script; added comments.
Added named captures to install version regex.
Moved semver regex to separate variable.