Moved into namespace SimpleDOM, fixed code style and comments