DRY it out.
Tweak functions logic/whitespace.
Add custom header support.
Version 0.0.4.