Add spelling test and fix spelling errors
Greatly simplify _mask sub

But this still all needs a rewrite to cope with IPv6