added quad layer, added a few more control features to the triangle buffer