minor updates
added more comments