Add main and cmakefiles