Added require_once to code examples

Added http protocol to links