Integration of quaternions class and some warnings fixes