Merge pull request #775 from rakhimov/pp

Preproc. Unit Tests
added high level primitives and cycns, added initfromdb for POD
Minor housekeeping.