Wrapping code lines greater than 100 chars
Code formatting. Added spaces between if ( and for (
Reordered the switch statement and adding comment to make the behaviour less ambiguous.
Merge pull request #115 from azkaban/killCancelChanges

Added Cancelled state to represent a job which cancelled due to previous errors