Major update:
* Updated to Spark 0.2.0
* Changed functions to pass-by-reference to avoid memory problems
* Updated example application.
* Added negative status codes for internal errors