Add autoloads, format header more idiomatically