Added license headers and some parser code.