Merge pull request #96 from errordeveloper/pt_error_handling

Added error handling in PT::Builder