some work on issue #69 and compiler warnings

fixed the GLib.Timeout issue mentioned in issue #69 and fixed some compiler warnings.