refactor update func, and subdomain regex matching
Merge pull request #13 from sepeth/patch-1

refactor update func, and subdomain regex matching