Merge pull request #2 from Dossar/master

Header and stackArray stuff
fixed and renamed and divided into functions -MM
Completed with output pdf files