Remove extraneous object creation
Add some documentation