Added sanity checks and expanded "list domains" section