added `Build` typedef and some documentation to the API.