minor cleanup
added documentation