reorganized code and added tweet unlinking