Added iteration comments and autodocs for front end. and fixed a type-o from Joe