Gathering quat funtions into one module
Refactoring