Merged code, adavanced code in examples, img examples at beginning