rewrite of bookfunctions, feature classifier new. It runs but untested
bug fix, mcp copied to bookfunctions
merge conflict solved