Adding settings file and tests. Moved validation from is_valid to validate method.