fixed issue ServiceAgent generation never terminates, fixed issue with
function parameter list on command prompt