Fixed examples and cmake
Updated manual and examples