fix bugs, generate docs
fix build bug