Add mesh switching, change comment style to C++