added apache 2.0 license, cleaned up file headings