Started functions for network use

Started functions which are used to run the network. Also started
a function to set the weights of the network.

Some comments were changed to more accurately reflect the sections
they describe.

Prototypes for functions available to the user were also added to
the header.