Removed invSqrt
Minor changes to the external inputs
Fixed the check integrity function
Removed an compilation error