Created files as per the new design. Added debug option through cmake.