added theta and sigmoidal activation functions, added tests, added sigmainv that allows calculation of bias from rate