Added license file. Code available under apache license 2.0