add doc-strings to the linearmap.py