Fixed openmp issues. Created central makefile