Added CMake for compilation
Fixed Compilation issues
Reorganized source code