cleaned up init code to ensure that db tables are properly created
added try/catch blocks around calls to the TFA API to catch exceptions
expanded form to support the configuration of all global system settings