add license in ptw.[cc,h]