Added comments to the code
And added class RecNotifThread into its own file