add documention for writing built-in commands