clarify format prompt, use std::unique_ptr and ArraySize