Fixed a few bugs

Added a check if the root is followed by a an mo, mspace or phantom elements, in which case, extra padding is not applied.
Added a check for texSpacing variable in case it contains extra padding to be applied (previously I did not check for it and it made the root to be too close to preceding mo elements).