added some checks, removed normalization per observation
some bibliography