Add feature for specifying a non-linear output activation. Addresses issue #22, still needs documentation.