Fixed NoSuchMethodError exception on older devices (last fix was incomplete)
Added log-to-file mode (off by default). Also, added the ability to enable debug and log-to-file modes without rebuilding the app