Improved to include configure support and documentation.