cleaned up brter
included predict.safe function
finalised code
added examples
minor changes