Allow optional node weight.
Removed unused code.
Declaring node weight in class.
Split optional usage string by comma.