Fixed #50
Fixed #49
Closed #48; extracted headers code to library
Closed #47
Blah blah blah
Resolved #51