REF: clean up the code and remove unnecessary code.
ENH: generate version from setup.py.