fixed basic webgl rendering, improved formatting