another little step forward in neural nets. still doesnt compile, but everything should be in place.