Add Doc function.
Add doc and Cost keyword function.