Fixed nested conditions. Also changed the cpp file name to vispi.cpp