Added Javadocs, greatly improved demo, added JAR and made it work.