std::rt: Document and cleanup the run function