Added the object loop method and started writing some documentation for it along with some tests