adding theo's fixes to PG simple
Merge pull request #34 from ofZach/osxFixes

adding theo's fixes to PG simple