replaced jobad3 with jobad, refactored and commented code