Renamed rpc for coarsening, fixed minor code issues.
Closing branch.