Added license header and adjusted