input is now *= instead of += with the weight of the sigmoid
main now handles some of the cuda kernel setup