Updated Documentation

Updated documentation, and found an error in the program. The program
will crash if learning mode is used before the initialization method has
terminated