primitive prototype

core, tests, documentation