Improve program and algorithm section draft.

Removed bug in the implementation where output neurons apply the
logistic function to the sum of their inputs. Create a draft of
algorithm section without any supporting diagrams.