new remote class, new txtstore class, various updates and new tests