Replace typdefs with using
Improve documentation