Change license header to small version and replace echo with p()

Fix #1729