parsed the header block and convert the data into nested lists.

Signed-off-by: tanji <nicholastanjerome@gmail.com>