Renamed class Error to result
Separate makefile for tests and examples