renamed globalStyle by alignmentStyle and put it at last param in constructor