Add version data, functions and setup.py