Renamed vertex collection to a more abstract level. Implemented routines to write indices to dynamic buffer.