Fixed constructor of NNLayer

This should fix issue #12.