updated and merged examples + multiinput