re-ordered sections to follow python, still have R specific
removed bad-mouthing loops
deleted extra line