Fix segmentation fault bug when pug color ID.
Fix travis setting
Fix old fassion coding style
...new/delete -> unique_ptr