Fixed plot bug and added missing logdet function