Updated library (issue #19); fixed issue #82; make some cosmetic change; completed issue #72