Update wham.cpp