added constructor, sigmoid functions, and feed forward