Add example with two layers; Fix bug in building final output array
Merge pull request #10 from iandanforth/twoLayers

Add example with two layers; Fix bug in building final output array