fixes #5 (hopefully)
set more defaults
simplified preferences code