Trim code & add license