added encapsulation in global SEN object, added beautifying argument to stringification