added mgenerate script, she-bang for python to mgenerate.py, and modifications to setup.py for installation.