Added main script file. If user status is offline, changes status to invisible for a short period to receive messages