Updated gd.py, Made Activation Functions work, changed logging

The remaining problem has to do with the fact that linear activation
functions don't seem to work