moved node class inside neural net
added comments, cleaned up code. it still works :)