fix whitespace
Change execute function to execute loop internally
More comments/tweaks here and there