finally cleaned up cmake file and added files for performing VI