add ability to predict probabilities
refactor and imrove documentation
improve documentation
improve documentation