implemented center() and updated readme