Added Apache License 2.0 headers, etc.