Creating extended pdf, nll, and everything else in the loop.

Sorted out sigpipe problem with parallel threads by going single-thread
Merge pull request #173 from adavidzh/fix_bands

Fixed bands