Tried again to test some other methods for storing in rows to little
success. But added some documentation and cleaned up a bit.