Added license header and remvoed comments