[WIP] Document creating extensions

I think the exception message should be sufficient. In an ideal situation, the exception should give you enough details to tell you what's wrong (the most with a help of documentation for the extension).