Code: Reduces block nesting.
Other minor improvements.
Sprite: Using XDocument for writing.
Bundle: Rename methods.
Merge pull request #988 from am11/master

Code: Reduces block nesting