Add utils.R and browser_test
Bugfixes from public goods example