further improvement

added instantiation method attribute, added more example code