updating thesis+code