fixed compiler and docs bugs