getters method now directly in .h
Confirming to C++ style guideline + fix openmp bug functions with gcc