add API.md file and refactor to be coherent with the API
refactoring configuration management
refactoring manager initializations