replaced if statements with a switch

just to make it easier to read
changed Pragmas.h to gearli pragmas

will make a legoless pragmas file