Add checks at import and __init__

Also correct a statement. "==" should probably be "=".