Refactor code for printing headers and data.
Add README file.