added comments, standardized indents, added getting the picture