Starting to add documentation to featmat.py