initial neural net implementation & tests
minor cleanup