major changes

lots of changes
code now lines up with UFLDL
still need to figure out why error isn't reducing
gradient calculation isn't working correctly