Refinements and Numerical Error Studies of the COS Method for Barrier and Bermudan Options under Heston Dynamics | Synapse