Added license information to individual files.
Added license information to testsuite files.
Made the testsuite more pep8 compliant.

Also added licensing information to individual files, replaced some
deprecated functions, and reformatted some comments into docstrings.
Updated version number to 3.2