fix minor issues and doc