minor cleanup
added more documentation