Ben gui work

Fixes issue #628 and #594. 
Use true/false instead of 1/0 for booleans.