Fixed some some errors and got some basic header parsing going down