Use min_mem and max_mem in examples instead of using java_opts.  Reformatting and instance template example.