comments added

first pass at commenting all classes and functions