added apache license text, updated readme, updated headers