Consolidated 2D SPC codes. Added RPC monte carlo code.