Method .getTargets documented

I (student of MSC in BIOINFORMATICS course given by Egon) edited the method .getTargets so that I am now able to extract the targets which belong to a specific pathway. 
Please check if the code works fine.