Added documentation and fixed issue.

Beforehand, comparisons to None were done with "==" and "!=". Fixed.
Added license.