added beginning, connected range changing, fixed small things