Fixed #103
correct the '--mapping' function

AND
Created test code for genattrib.py
Updated the README and USAGE text