Feature/build api

Ok I've chabged the structure a bit and added  the beginning of a API in doc.