Committed the code

The example mod isn't completly finished, but I haven't got time to
finish it now.