some sound changes.. renamed domVariables to domCommon.. some refactoring, added classes