fixed a few warnings, add doc