added titletoc option and updated example