Testing function and fixed doc error
Bunch of Error fixes