Added functionality for handling the reading/writing of pdb format files and added error handling facilities.