Improved documentation; Added main.py as example.