Added comments to AMThread and a handful of new functions. Also added a check to make sure we have an object before calling moveToThread() on it.