Major update and numerous bug fixes

Version 0.3.0 on CRAN.
Tutorial written for this version.