Add copyright statement, cleanup warnings.