did some documentation and style cleanup