Support headers and footers

Added support for headers and footers for datasets. Addresses the issue brought up in #11.