switched to tanh actv fns; added fully-connected option