Visit repository.idimager.com and click the book icon (lower right side) for the classes that you can use. Writing your own scripts can be challenging and best to start exploring simple existing scripts.