Added basic header reading functionality.