style: Comments and more idiomatic type checks

Updates comments with default values and uses
the idiomatic (and slightly faster) isinstance
instead of type comparison.

Also replaces