Bug fixes + added the generated api (genapi.py) to the repository