Added a table structure for gui elements. Changed update and draw param names to offset.