Added license, code template cleanup