Properly mark private section in docs
Fix warnings and build w/ -pedantic