Feature: Center on x axis

Added new feature for centering on X Axis. 
Added added bootstrap definition for stronger type.
Fixed incompatible type errors. 

Formatting is related to new Typescript compiler.