Pervasive implementation of main features

 All main features are here. Next step would be adding of more tests and benchmarks.