modified stagen.h and stegan.cpp