Clarified source code
Made context creation exception-safe
Improved rendertechnique fallback (will no longer loop)