SPARK upgrade and documentation