– fix the order of the paramters when allocating the aligned memory (fix the resulting segfault)
– fix some clion warnings
This was really just a maintenance commit that, as mentioned, fixed a segfault that sometimes occurred as well as some style improvements suggested by the IDE.