Major changes to syncing and cron job

-- Sync debugged. More testing required but mostly working.
-- Changed cron job to run every 10 min.