Ramsey aux vars

Fix small bug of dyn_ramsey_static.m and add comments to file. Also adds unit test.