Add chapter file and amsthm pacage