Refine params, add details, and annotate code