Separate files for types
Complete API
Make SetAlias return the new alias ID
Update API documentation