fix doc and preamble