Updated license header and added more methods to the PBS class