Neural network code tested. Re-Written to satisfy OOP