C89 compatibility added, public domain info added, updated documents