SmartApp Developer's Guide Updates

Especially with regard to the preferences section, which was totally wrong in some cases