add CodeBook.md, fix output extension