initial documentation
example of training / evaluating model
remove GCC warnings
applying patch from Wade Shen (thanks)