Moved static function declarations.

Now in the actual file the static functions are declared. Did not make
sense to have them in a header that would be included by other files.
Clarified the training function.
Made functions to retrieve hidden or output weights.
Made a file persistance file.