in getting started they go over example code:
http://xlw.sourceforge.net/refman/gettingstarted.html