fixed some bugs and docs