Loops fixed
updating documentation further