PBS Script added to ABC

…and a few bugs ironed out of functions.