cosmetic code modifications
changed node style application mechanism
some refactoring