Updated comments, documentation and man pages.