Added cr_sparseness. Fixed bug in caching of the system.