Fixed ProcotolLib
Fixed a lot of warnings