first implementation of NPC data
added doctests