log-det framework added (partially)
bugfixes