fixed status check for non-zero return code
fixed PBS parsing
structural reorganisation
ID and status of resource parsed using regular expression
bug fixed
Merge pull request #11 from mpaciore/cleanup_and_fixes

Cleanup and fixes