fixed relax.cem and other small issues, almost ready for CRAN