Improved comments, added WebGL detection.