implement the leftover commands and update the doc